/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-03-30
 * Time: 20:13
 */
public class Demo1 {
    public static void main(String[] args) {
        Object locker=new Object();

        Thread thread=new Thread(()->{
            synchronized(locker){
                synchronized (locker){
                    System.out.println("hello thread");
                }
            }
        });
        thread.start();
    }
}
